package org.example;

public class Novel extends Book{
    private String genre;

    public Novel(String author, String title, String genre) {
        super(author, title);
        this.genre = genre;
    }

    public String getGenre() {
        return genre;
    }

    @Override
    public String toString() {
        return "Novel{" +
                "genre='" + genre + '\'' +
                '}';
    }
}
